#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE


namespace ActKind {
Q_NAMESPACE

enum ActionKind{
    Newfile,
    Openfile,
    savefile,
    saveasfile,
    Quit,
    undo,
    cut,
    Copy,
    paste,
    SelectAll
};

Q_ENUM_NS(ActionKind)


}




class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public slots:
               void OnActionTriggter(QAction* act);
               void OnNewfile();

private:
               bool MaybeSave();
private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
